Allow unregisterised ghc-8.6 to build newer GHC
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Wed, 23 Dec 2020 22:15:42 +0000 (22:15 +0000)
committerGianfranco Costamagna <locutusofborg@debian.org>
Wed, 23 Dec 2020 22:15:42 +0000 (22:15 +0000)
commit149749626bdd73486cafebcec2941e479a022ab0
tree277bdd3cbce4e27392bb917deadb9244c026a874
parentbf4d24dd2bf6faf933a23ad427e916a7bcf50191
Allow unregisterised ghc-8.6 to build newer GHC

Commit af9b744bbf1 introduced a regression stopping existing unregisterised
compilers from being able to compile newer versions of GHC. The problem is
that the bootstrap compiler uses the newer `includes/stg/MiscClosures.h` file
where some defines have been renamed, resulting in the following error:
.
 error: ‘stg_atomicModifyMutVarzh’ undeclared (first use in this function); did you mean ‘stg_atomicModifyMutVar2zh’?
.
 For more information, see https://gitlab.haskell.org/ghc/ghc/issues/17111.
.
 This patch can be removed, once ghc-8.6 is no longer the bootstrap compiler.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/issues/17111

Gbp-Pq: Name fix-build-using-unregisterised-v8.6
includes/stg/MiscClosures.h